<?php
	/**
	 * Some file permission are missing.
	 * @author IMP
	 */

	class FilePermissionException extends Exception {
		public function __construct($r, $w, $x, $file = null){
			parent::__construct('File permission(s) ' . ($r ? 'reading ' : '') . ($w ? 'writing ' : '') . ($x ? 'executing ' : '') . ($file != null ? 'for file ' . $file : '') . 'are missing.');
		}
	}
?>